Procedures and functions are schema objects that consist a set of SQL statements and stored in the server. In the main window, click
Function to open the function object list.
Function Designer is the basic Navicat tool for working with procedures/functions. You can enter a valid SQL statement in the Definition tab. To customize the view of the editor and find out more features for SQL editing, see SQL Editor for details.
The Code Outline pane displays information about the procedure/function including parameters, code body, etc. If the Code Outline pane is hidden, choose View -> Code Outline.
Note: Available only in Non-Essentials Edition.
Button |
Description |
|
Refresh the code outline. |
|
Turn mouse over highlight on or off. |
|
Show the detail view of the code outline. |
|
Toggle sorting by position. |
|
Expand the selected item. |
|
Collapse the selected item. |
To execute the procedure/function, click
on the toolbar. If the SQL statement is correct, the statement will be executed and, if the statement is supposed to return data, the DBMS Output tab opens with the data returned. If an error occurs while executing the procedure/function, execution stops, the appropriate error message is displayed. If the procedure/function requires input parameters, the Input Parameters dialog will pop up. Check the Raw Mode option to pass the inputted values to the procedure/function without quotation marks.
Note: Navicat supports to return 10 result sets.
You can add/remove breakpoints for debugging by clicking
in the grey area beside each statement.
Click
on the toolbar to launch the Oracle Debugger. Enter the input parameters if necessary.